package com.enjoyor.soa.traffic.util.enums.signal;

public enum LampStatus {
	
	//11	灭灯
	TURN_OFF("11","灭灯"),
	//21	红灯
	TURN_RED("21","红灯"),
	//22	黄灯
	TURN_YELLOW("22","黄灯"),
	//23	绿灯
	TURN_GREEN("23","绿灯"),
	//31	红黄
	TURN_RED_TELLOW("31","红黄");
	
	private final String key;

	private final String value;

	private LampStatus(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return this.key;
	}

	public String getValue() {
		return this.value;
	}

	public static String getValue(String key) {  
		LampStatus[] enums = values();  
        for (LampStatus e : enums) {  
            if (e.getKey().equals(key)) {  
                return e.getValue();  
            }  
        }  
        return null;  
    } 
}
